package com.solidtrust.crawler.framework;

import java.util.List;

import org.jsoup.nodes.Document;

import com.solidtrust.crawler.model.PageSource;

/*
 * http://car.baidu.com/
 * http://www.hx2car.com/
 * http://bj.58.com/ershouche/
 * http://www.ganji.com/ershouche/
 * http://www.273.cn/
 * http://www.xin.com/
 * http://www.guazi.com/
 * http://www.carking001.com/
 * http://www.51auto.com/
 * http://used.xcar.com.cn/
 * http://beijing.taoche.com/
 * 
 */
public interface ISitemap {

	void start() throws Exception;
	
	String getStartUrl();
	
	List<PageSource> getCitiesOrProvinces(Document doc);
	
	List<PageSource> getBrands(Document doc, PageSource page);
	
	List<PageSource> getModels(Document doc, PageSource page);
	
	void nextPage(PageSource page, int pageIndex, String model, String brand, String area) throws Exception;
	
	String getSource();
	
	void finish();
	
	void markStop();
}
